package cn.iocoder.yudao.module.media.dal.mysql.macvod;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.media.dal.dataobject.macvod.MacVodDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.media.controller.admin.macvod.vo.*;

/**
 * 电影信息 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface MacVodMapper extends BaseMapperX<MacVodDO> {

    default PageResult<MacVodDO> selectPage(MacVodPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<MacVodDO>()
                .eqIfPresent(MacVodDO::getSourceId, reqVO.getSourceId())
                .eqIfPresent(MacVodDO::getUpdateStatus, reqVO.getUpdateStatus())
                .eqIfPresent(MacVodDO::getVodId, reqVO.getVodId())
                .eqIfPresent(MacVodDO::getTypeId, reqVO.getTypeId())
                .eqIfPresent(MacVodDO::getTypeId1, reqVO.getTypeId1())
                .eqIfPresent(MacVodDO::getGroupId, reqVO.getGroupId())
                .likeIfPresent(MacVodDO::getVodName, reqVO.getVodName())
                .eqIfPresent(MacVodDO::getVodSub, reqVO.getVodSub())
                .eqIfPresent(MacVodDO::getVodEn, reqVO.getVodEn())
                .eqIfPresent(MacVodDO::getVodStatus, reqVO.getVodStatus())
                .eqIfPresent(MacVodDO::getVodLetter, reqVO.getVodLetter())
                .eqIfPresent(MacVodDO::getVodColor, reqVO.getVodColor())
                .eqIfPresent(MacVodDO::getVodTag, reqVO.getVodTag())
                .eqIfPresent(MacVodDO::getVodClass, reqVO.getVodClass())
                .eqIfPresent(MacVodDO::getVodPic, reqVO.getVodPic())
                .eqIfPresent(MacVodDO::getVodPicThumb, reqVO.getVodPicThumb())
                .eqIfPresent(MacVodDO::getVodPicSlide, reqVO.getVodPicSlide())
                .eqIfPresent(MacVodDO::getVodPicScreenshot, reqVO.getVodPicScreenshot())
                .eqIfPresent(MacVodDO::getVodActor, reqVO.getVodActor())
                .eqIfPresent(MacVodDO::getVodDirector, reqVO.getVodDirector())
                .eqIfPresent(MacVodDO::getVodWriter, reqVO.getVodWriter())
                .eqIfPresent(MacVodDO::getVodBehind, reqVO.getVodBehind())
                .eqIfPresent(MacVodDO::getVodBlurb, reqVO.getVodBlurb())
                .eqIfPresent(MacVodDO::getVodRemarks, reqVO.getVodRemarks())
                .betweenIfPresent(MacVodDO::getVodPubdate, reqVO.getVodPubdate())
                .eqIfPresent(MacVodDO::getVodTotal, reqVO.getVodTotal())
                .eqIfPresent(MacVodDO::getVodSerial, reqVO.getVodSerial())
                .eqIfPresent(MacVodDO::getVodTv, reqVO.getVodTv())
                .eqIfPresent(MacVodDO::getVodWeekday, reqVO.getVodWeekday())
                .eqIfPresent(MacVodDO::getVodArea, reqVO.getVodArea())
                .eqIfPresent(MacVodDO::getVodLang, reqVO.getVodLang())
                .eqIfPresent(MacVodDO::getVodYear, reqVO.getVodYear())
                .eqIfPresent(MacVodDO::getVodVersion, reqVO.getVodVersion())
                .eqIfPresent(MacVodDO::getVodState, reqVO.getVodState())
                .eqIfPresent(MacVodDO::getVodAuthor, reqVO.getVodAuthor())
                .eqIfPresent(MacVodDO::getVodJumpurl, reqVO.getVodJumpurl())
                .eqIfPresent(MacVodDO::getVodTpl, reqVO.getVodTpl())
                .eqIfPresent(MacVodDO::getVodTplPlay, reqVO.getVodTplPlay())
                .eqIfPresent(MacVodDO::getVodTplDown, reqVO.getVodTplDown())
                .eqIfPresent(MacVodDO::getVodIsend, reqVO.getVodIsend())
                .eqIfPresent(MacVodDO::getVodLock, reqVO.getVodLock())
                .eqIfPresent(MacVodDO::getVodLevel, reqVO.getVodLevel())
                .eqIfPresent(MacVodDO::getVodCopyright, reqVO.getVodCopyright())
                .eqIfPresent(MacVodDO::getVodPoints, reqVO.getVodPoints())
                .eqIfPresent(MacVodDO::getVodPointsPlay, reqVO.getVodPointsPlay())
                .eqIfPresent(MacVodDO::getVodPointsDown, reqVO.getVodPointsDown())
                .eqIfPresent(MacVodDO::getVodHits, reqVO.getVodHits())
                .eqIfPresent(MacVodDO::getVodHitsDay, reqVO.getVodHitsDay())
                .eqIfPresent(MacVodDO::getVodHitsWeek, reqVO.getVodHitsWeek())
                .eqIfPresent(MacVodDO::getVodHitsMonth, reqVO.getVodHitsMonth())
                .eqIfPresent(MacVodDO::getVodDuration, reqVO.getVodDuration())
                .eqIfPresent(MacVodDO::getVodUp, reqVO.getVodUp())
                .eqIfPresent(MacVodDO::getVodDown, reqVO.getVodDown())
                .eqIfPresent(MacVodDO::getVodScore, reqVO.getVodScore())
                .eqIfPresent(MacVodDO::getVodScoreAll, reqVO.getVodScoreAll())
                .eqIfPresent(MacVodDO::getVodScoreNum, reqVO.getVodScoreNum())
                .betweenIfPresent(MacVodDO::getVodTime, reqVO.getVodTime())
                .eqIfPresent(MacVodDO::getVodTimeAdd, reqVO.getVodTimeAdd())
                .eqIfPresent(MacVodDO::getVodTimeHits, reqVO.getVodTimeHits())
                .eqIfPresent(MacVodDO::getVodTimeMake, reqVO.getVodTimeMake())
                .eqIfPresent(MacVodDO::getVodTrysee, reqVO.getVodTrysee())
                .eqIfPresent(MacVodDO::getVodDoubanId, reqVO.getVodDoubanId())
                .eqIfPresent(MacVodDO::getVodDoubanScore, reqVO.getVodDoubanScore())
                .eqIfPresent(MacVodDO::getVodReurl, reqVO.getVodReurl())
                .eqIfPresent(MacVodDO::getVodRelVod, reqVO.getVodRelVod())
                .eqIfPresent(MacVodDO::getVodRelArt, reqVO.getVodRelArt())
                .eqIfPresent(MacVodDO::getVodPwd, reqVO.getVodPwd())
                .eqIfPresent(MacVodDO::getVodPwdUrl, reqVO.getVodPwdUrl())
                .eqIfPresent(MacVodDO::getVodPwdPlay, reqVO.getVodPwdPlay())
                .eqIfPresent(MacVodDO::getVodPwdPlayUrl, reqVO.getVodPwdPlayUrl())
                .eqIfPresent(MacVodDO::getVodPwdDown, reqVO.getVodPwdDown())
                .eqIfPresent(MacVodDO::getVodPwdDownUrl, reqVO.getVodPwdDownUrl())
                .eqIfPresent(MacVodDO::getVodContent, reqVO.getVodContent())
                .eqIfPresent(MacVodDO::getVodPlayFrom, reqVO.getVodPlayFrom())
                .eqIfPresent(MacVodDO::getVodPlayServer, reqVO.getVodPlayServer())
                .eqIfPresent(MacVodDO::getVodPlayNote, reqVO.getVodPlayNote())
                .eqIfPresent(MacVodDO::getVodPlayUrl, reqVO.getVodPlayUrl())
                .eqIfPresent(MacVodDO::getVodDownFrom, reqVO.getVodDownFrom())
                .eqIfPresent(MacVodDO::getVodDownServer, reqVO.getVodDownServer())
                .eqIfPresent(MacVodDO::getVodDownNote, reqVO.getVodDownNote())
                .eqIfPresent(MacVodDO::getVodDownUrl, reqVO.getVodDownUrl())
                .eqIfPresent(MacVodDO::getVodPlot, reqVO.getVodPlot())
                .likeIfPresent(MacVodDO::getVodPlotName, reqVO.getVodPlotName())
                .eqIfPresent(MacVodDO::getVodPlotDetail, reqVO.getVodPlotDetail())
                .betweenIfPresent(MacVodDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(MacVodDO::getId));
    }

}